package com.qf.proxy;

import com.qf.service.UserService;
import com.qf.service.impl.UserServiceImpl;

/**
 * projectName: Spring
 *
 * @author: MaTianWei
 * time: 2021/6/30 9:16
 * description:
 */

public class StaticUserServiceImpl {
    private UserService userService = new UserServiceImpl();

    public void save(){
        try {
            System.out.println("方法开始");
            //do something
            userService.save();
            //do something
            System.out.println("方法结束");
        } catch (Exception e) {
            //do something
            System.out.println("方法异常");
            e.printStackTrace();
        } finally {
            //do something
            System.out.println("方法finally");
        }
    }
}
